package org.footito.android.api;

public class TeamFromAPI {

	private int id;
	private String name;
	private String pictureLink;
	private String link;
	private int group;

	public TeamFromAPI(int id, String name, String pictureLink, String link, int group) {
		this.id = id;
		this.name = name;
		this.pictureLink = pictureLink;
		this.link = link;
		this.group = group;
	}

	public int getGroup() {
		return group;
	}

	public int getId() {
		return id;
	}

	public String getLink() {
		return link;
	}

	public String getName() {
		return name;
	}

	public String getPictureLink() {
		return pictureLink;
	}

	public boolean isValid() {
		if (id < 0 && group < 0)
			return false;
		if (name == null || name.equalsIgnoreCase(""))
			return false;
		if (link == null || link.equalsIgnoreCase(""))
			return false;
		if (pictureLink == null || pictureLink.equalsIgnoreCase(""))
			return false;
		return true;
	}

}
